#ifndef RECOMMENDFORM_H
#define RECOMMENDFORM_H

#include <QWidget>
#include <QJsonArray>

namespace Ui {
class recommendForm;
}

class recommendForm : public QWidget
{
    Q_OBJECT

public:
    explicit recommendForm(QWidget *parent = nullptr);
    ~recommendForm();

    //显示当前列表的歌曲
    void showRandomRow(QJsonArray arr, int row);

    //添加对象到布局器中
    void additemOut();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::recommendForm *ui;
    QJsonArray imgs;
    int row;
    int col;
    int curindex;
};

#endif // RECOMMENDFORM_H
